package com.ikaros.freemarker;

import java.io.Console;

/**
 * @author: 月光伴奏
 * @Date 2017-10-26 18:13
 */
public class Json2Object {
  /*  public static void main(String[] args)
    {
        Student student = new Student();
        student.Name = "guwei4037";
        student.Age = 7;
        string json = JsonConvert.SerializeObject(student);//序列化输出Json字符串
        Console.WriteLine(json);

        Student jsonObject = JsonConvert.DeserializeObject<Student>(json);
        Console.WriteLine(string.Join(" ", jsonObject.Name, jsonObject.Age));//反序列化输出 guwei4037和7
    }*/
}
